<%--
  Created by IntelliJ IDEA.
  User: 10475
  Date: 2023/2/16
  Time: 15:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>人才招聘系统-主页</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/lib/layui-v2.6.3/css/layui.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">人才招聘系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>

<%--            <li class="laysui-nav-item layui-hide-xs"><a href="${pageContext.request.contextPath}/jsp/User/jobAllLIst.jsp">首页</a></li>--%>
<%--            <li class="layui-nav-item layui-hide-xs"><a href="${pageContext.request.contextPath}/jsp/job.jsp">职位</a></li>--%>
<%--            <li class="layui-nav-item layui-hide-xs"><a href="">资讯</a></li>--%>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="${pageContext.request.contextPath}/jsp/login.jsp">
                    <img src="${pageContext.request.contextPath}/images/bg.jpg" class="layui-nav-img">
                    ${user.name}
                </a>
                <dl class="layui-nav-child">
                    <%--                    <dd><a href="">设置</a></dd>--%>
                    <dl><a href="${pageContext.request.contextPath}/jsp/login.jsp">退出</a></dl>
                </dl>
            </li>
            <
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">招聘信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="${pageContext.request.contextPath}/jsp/User/jobAllLIst.jsp">查看招聘信息</a></dd>
                        <dd><a href="${pageContext.request.contextPath}/jsp/User/like.jsp">收藏的招聘信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">个人信息</a>
                    <dl class="layui-nav-child">
                        <dd><a href="${pageContext.request.contextPath}/jsp/User/addinfo.jsp">完善个人信息</a></dd>
                        <dd><a href="${pageContext.request.contextPath}/jsp/User/checkInfo.jsp">查看简历信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><dd><a href="${pageContext.request.contextPath}/jsp/User/rusumeSelect.jsp">投递的简历</a></dd></li>
<%--                <li class="layui-nav-item"><a href="">消息</a></li>--%>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
<%--        <div style="padding: 15px;">内容主体区域。记得修改 layui.css 和 js 的路径</div>--%>
        <iframe src="${pageContext.request.contextPath}/jsp/User/jobAllLIst.jsp" id="main" height="100%" width="100%"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        留言邮箱：1047570005@qq.com
        举报邮箱：1047570005@qq.com
    </div>
</div>
<script src="${pageContext.request.contextPath}/lib/layui-v2.6.3/layui.js"></script>
<script>
    layui.use('element',function () {

        var element =layui.element;
        var $=layui.jquery;
        $(document).ready(function () {
            // 查找dd下面的a标签 即企业/招聘用户列表
            $("dd>a").click(function (e) {
                e.preventDefault();
                // 用a标签的href属性将数据传递到src
                $('#main').attr("src",$(this).attr("href"));

            });

        });
    });
</script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            ,menuRight: function(){
                layer.open({
                    type: 1
                    ,content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                });
            }
        });

    });
</script>
</body>
</html>